package com.chinaedu.oc.database;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

 public class DynamicDataSource extends AbstractRoutingDataSource{  

    @Override  
    protected Object determineCurrentLookupKey() { 
    	//System.out.println("获取数据源...");
        return DBContextHolder.getDBType();  
    }  
}